<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/Common Module/mem_sdram.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_df4e0e4e72f77ab290fd1a24f190250a.html">Common Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">mem_sdram.h</div></div>
</div><!--header-->
<div class="contents">
<a href="mem__sdram_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#ifndef __MEM_SDRAM_H__</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#define __MEM_SDRAM_H__</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;SWM341.h&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="mem__sdram_8h.html#abad9fc97d2a6d6254802626515e92585">   32</a></span><span class="preprocessor">#define ALIGN_UP(size, align)           (((size) + (align) - 1) &amp; ~((align) - 1))</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="mem__sdram_8h.html#ad67ded8efbc52a780f97c578e5d8d786">   39</a></span><span class="preprocessor">#define ALIGN_DOWN(size, align)         ((size) &amp; ~((align) - 1))</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="keywordtype">void</span> *<a class="code hl_function" href="mem__sdram_8h.html#ae1630464a6d7686e9e41daf4b38e74a8">sdram_malloc</a>(<span class="keywordtype">size_t</span> size);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>uint8_t <a class="code hl_function" href="mem__sdram_8h.html#a9ef7e7053d4000fe99a7eacc8d9346d7">sdram_free</a>(<span class="keywordtype">void</span> *ptr);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span><span class="keywordtype">size_t</span> <a class="code hl_function" href="mem__sdram_8h.html#a5518679ba96822661667b2b3d5182379">sdram_get_idle_size</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span><span class="preprocessor">#endif </span><span class="comment">//__MEM_SDRAM_H__</span></div>
<div class="ttc" id="amem__sdram_8h_html_a5518679ba96822661667b2b3d5182379"><div class="ttname"><a href="mem__sdram_8h.html#a5518679ba96822661667b2b3d5182379">sdram_get_idle_size</a></div><div class="ttdeci">size_t sdram_get_idle_size(void)</div><div class="ttdoc">获取空闲可用内存大小</div><div class="ttdef"><b>Definition:</b> <a href="mem__sdram_8c_source.html#l00231">mem_sdram.c:231</a></div></div>
<div class="ttc" id="amem__sdram_8h_html_a9ef7e7053d4000fe99a7eacc8d9346d7"><div class="ttname"><a href="mem__sdram_8h.html#a9ef7e7053d4000fe99a7eacc8d9346d7">sdram_free</a></div><div class="ttdeci">uint8_t sdram_free(void *ptr)</div><div class="ttdoc">释放一块内存</div><div class="ttdef"><b>Definition:</b> <a href="mem__sdram_8c_source.html#l00183">mem_sdram.c:183</a></div></div>
<div class="ttc" id="amem__sdram_8h_html_ae1630464a6d7686e9e41daf4b38e74a8"><div class="ttname"><a href="mem__sdram_8h.html#ae1630464a6d7686e9e41daf4b38e74a8">sdram_malloc</a></div><div class="ttdeci">void * sdram_malloc(size_t size)</div><div class="ttdoc">申请一块内存</div><div class="ttdef"><b>Definition:</b> <a href="mem__sdram_8c_source.html#l00130">mem_sdram.c:130</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
